<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Main extends CI_Controller {

    
    function __construct() {
        parent::__construct();
		
		$this->load->model("kaki/th_model" , "th_model");
		
    }

    public function index() {


        $this->load->library('session');

        $all_se =   $this->session->all_userdata();        
        $pr     =   $this->session->userdata('purview');
        
		//print_r($all_se);
        

        $html = $this->init("首頁", "jquery");
        $html["js"] = $this->load_js("首頁", "jquery");
		
		$this->s_update();
        $this->load->view('main', $html);
    }
	
	public function s_update() {

		/*
		update-
			demand
			object
			market		*/
		$this->th_model->update_o_m_d();
	}
	
	

}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */